<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../base.jsp"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>数据 - AdminLTE2定制版</title>
    <meta name="description" content="AdminLTE2定制版">
    <meta name="keywords" content="AdminLTE2定制版">
    <!-- 响应屏幕宽度 -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 页面meta /-->
</head>
<body>
<div id="frameContent" class="content-wrapper" style="margin-left:0px;">
    <!-- 内容头部 -->
    <section class="content-header">
        <h1>
            我的留言
            <small>我的留言</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="all-admin-index.html"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li><a href="all-order-manage-list.html">我的留言</a></li>
            <li class="active">我的留言</li>
        </ol>
    </section>
    <!-- 内容头部 /-->

    <!-- 正文区域 -->
    <section class="content">
        <div class="block table">


            <form action="" method="post">
                <table width="99%" align="center" border="1px" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                    <tr>
                        <th bgcolor="#66ffff" width="20%" >发送人</th>
                        <th bgcolor="#66ffff" width="10%" >标题</th>
                        <th bgcolor="#66ffff" width="40%" >内容</th>
                        <th bgcolor="#66ffff" width="20%" >时间</th>
                        <th bgcolor="#66ffff" width="10%" >操作</th>
                    </tr>
                    <c:forEach items="${messageList}" var="mg">
                        <tr>

                            <td bgcolor="#ffffff"  style="width: 300px" style="height: 400px">${mg.sendName}</td>
                            <td bgcolor="#ffffff">${mg.sendTitle}</td>
                            <td bgcolor="#ffffff">${mg.sendContent}</td>
                            <td><fmt:formatDate value="${mg.sendTime}" pattern="yyyy-MM-dd HH:mm:SS"/> </td>
                            <td bgcolor="#ffffff">
                                <a href="${ctx}/message/message.do" class="f6">回复</a>
                                <a href="${ctx}/message/delete.do?messageId=${mg.messageId}"
                                   class="f6">删除</a>
                            </td>
                        </tr>
                    </c:forEach>
                </table>

            </form>

        </div>


    </section>

</div>
</body>
<script type="text/javascript">
    $(function () {
        $(".datepicker").datepicker({
            language: "zh-CN",
            //选中之后自动隐藏日期选择框
            autoclose: true,
            //清除按钮
            clearBtn: true,
            format: "yyyy-mm-dd"
        });
    });
</script>
</html>